package com.lanyam.travel.base.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author rosson
 * @since 2020-02-22
 */
@TableName("order_refund")
public class OrderRefund extends Model<OrderRefund> {

    private static final long serialVersionUID = 1L;

    private String id;
    /**
     * 订单ID
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 退款总金额
     */
    @TableField("refund_amout")
    private BigDecimal refundAmout;
    /**
     * 产品单价
     */
    @TableField("refund_price")
    private BigDecimal refundPrice;
    /**
     * 数量
     */
    @TableField("refund_total")
    private Integer refundTotal;
    /**
     * 退款创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 退款完成情况(0:未退款,1:退款申请审核中，-1申请退款被驳回，2：退款申请审核通过待银行操作，3：已退款)
     */
    @TableField("refund_status")
    private Integer refundStatus;
    /**
     * 退款时间
     */
    @TableField("refund_time")
    private Date refundTime;

    /**
     * 退款用户ID
     */
    @TableField("require_user_id")
    private String requireUserid;

    public String getRequireUserid() {
        return requireUserid;
    }

    public void setRequireUserid(String requireUserid) {
        this.requireUserid = requireUserid;
    }

    public String getId() {
        return id;
    }

    public OrderRefund setId(String id) {
        this.id = id;
        return this;
    }

    public String getOrderId() {
        return orderId;
    }

    public OrderRefund setOrderId(String orderId) {
        this.orderId = orderId;
        return this;
    }



    public BigDecimal getRefundAmout() {
        return refundAmout;
    }

    public OrderRefund setRefundAmout(BigDecimal refundAmout) {
        this.refundAmout = refundAmout;
        return this;
    }

    public BigDecimal getRefundPrice() {
        return refundPrice;
    }

    public OrderRefund setRefundPrice(BigDecimal refundPrice) {
        this.refundPrice = refundPrice;
        return this;
    }

    public Integer getRefundTotal() {
        return refundTotal;
    }

    public OrderRefund setRefundTotal(Integer refundTotal) {
        this.refundTotal = refundTotal;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public OrderRefund setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Integer getRefundStatus() {
        return refundStatus;
    }

    public OrderRefund setRefundStatus(Integer refundStatus) {
        this.refundStatus = refundStatus;
        return this;
    }

    public Date getRefundTime() {
        return refundTime;
    }

    public OrderRefund setRefundTime(Date refundTime) {
        this.refundTime = refundTime;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderRefund{" +
        ", id=" + id +
        ", orderId=" + orderId +
        ", refundAmout=" + refundAmout +
        ", refundPrice=" + refundPrice +
        ", refundTotal=" + refundTotal +
        ", createTime=" + createTime +
        ", refundStatus=" + refundStatus +
        ", refundTime=" + refundTime +
        "}";
    }
}
